<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		
		<?php echo $title_for_layout.' | '; ?>
		<?php __('Online Newspaper / Video Youtube'); ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		
		echo $this->Html->script('youtube/jquery-1.3.2.min');
		echo $this->Html->script('youtube/jquery.min');
		echo $this->Html->script('youtube/jquery.validate');
		echo $this->Html->script('youtube/youtube');
		echo $this->Html->script('youtube/tabcontent');
		
	?>
	<?php 
		echo $this->Html->css('dark');
		echo $this->Html->css("switcher");
		echo $this->Html->css("style");
		echo $this->Html->css('all_youtube');
		
	?>
	<script type="text/javascript">
		function showtime(){
	
		var thelement= document.getElementById("tick_time");
		var Digital=new Date();
		var hours=Digital.getHours();
		var minutes=Digital.getMinutes();
		var seconds=Digital.getSeconds();
		var dn="PM";
		if (hours<12)
		dn="AM";
		if (hours>12)
		hours=hours-12;
		if (hours==0)
		hours=12;
		if (minutes<=9)
		minutes="0"+minutes;
		if (seconds<=9)
		seconds="0"+seconds;
		var ctime=hours+":"+minutes+":"+seconds+" "+dn;
		thelement.innerHTML= ctime;//"<b style='font-size:13;color:blue;'>"+ctime+"</b>";
		//setTimeout("showtime()",1000);
	}
	setInterval("showtime()",1000);
	</script>
</head>
<body>
<div class="wrapper">
	<div id="masthead"></div>
		<div id="header">		
			<div id="logo" style="padding:25px 0 25px 10px;">
			<h1>
				<a href="<?php echo $this->webroot;?>" title="Dailyvn-Express">
				Dailyvn-Express						<span>Online Newspaper / Video Youtube</span>
				</a>
			</h1>
			</div><!-- /logo -->
			<div class="banner">
				<img src="<?php echo $this->webroot;?>img/01-1.gif" alt="" />		
			</div>
			<div class="clear"></div>	
		</div><!-- /header -->
	<?php echo $this->element('main_menu');?>
	<div class="clear"></div>		
	<?php echo $content_for_layout;?>
	<div class="clear"></div>

</div><!-- end of wrapper -->

<div id="footer">
			<ul>
			<li><a href="#" title="Online Newspaper / Magazine Theme">Home</a></li>
			<li class="page_item page-item-935"><a href="#/sample-page-2/" title="About">About</a></li>
<li class="page_item page-item-960"><a href="#/demo-page-4/" title="Testing the Elements">Testing the Elements</a></li>
			<li class="last"><a href="#/feed/" rel="nofollow" title="Subscribe to latest posts in RSS">RSS</a></li>			
		</ul>
		
	
	
	<div class="clear"></div>
	
	<div id="footer-left-side">
					<a href="#top" title="Transcript" rel="home"><strong>&uarr;</strong> Dailyvn-Express</a>
			</div><!-- #site-info -->
			
	<div id="footer-right-side">
		<?php if(isset($loginIn['User'])){
			echo '<a class="first" href="'.$this->webroot.'users/logout">Đăng xuất</a>';
		}
		else{
			echo '<a href="'.$this->webroot.'users/login">Đăng nhập</a>';
		}
		if(isset($loginIn['User'])){
			echo '<a href="'.$this->webroot.'news/index">Quản trị</a>';
		}
		?>
		Designed by <a class="first" href="<?php echo $this->webroot;?>" title="Dailyvn-Express">Mr Diep</a> 
			</div> <!-- #footer-right-side -->
	<div class="clear"></div>
</div><!-- /footer -->

</body>
</html>